<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>${platenumber }</title>
<meta name="description" content="壁虎学车" />
<meta name="keywords" content="壁虎学车" />
<meta name="viewport"
	content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="<%=path%>/BihuWeb/css/amazeui.min.css" />
<link rel="stylesheet" href="<%=path%>/BihuWeb/css/style.css" />
<script type="text/javascript" src="<%=path%>/BihuWeb/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/BihuWeb/js/amazeui.min.js"></script>
<script type="text/javascript">


function changeColor(){
var nowday = document.getElementById("${nowday}");
nowday.style.color="#f60";
}
window.onload = function(){
 changeColor();
}




</script>
</head>
<body>
	<header data-am-widget="header"
		class="am-header am-header-default header">
<!--  	<div class="am-header-left am-header-nav">
		<a href="#left-link" class=""> <i
			class="am-header-icon am-icon-angle-left"></i>
		</a>
	</div>-->
	<h1 class="am-header-title">
		<a href="#title-link" class="" style="color: #333;">${platenumber }</a>
	</h1>
	
	</header>
	<div class="tab-input">
		<table width="100%" border="0">
			<tr>
				<td rowspan="2"><a style="font-size: 20px;"
					href="<%= basePath%>/OrderCar_toSchedule.action?index=left&carid=${carid}&nowday=${nowday}&firstday=${firstday}&openid=${openid}&platenumber=${platenumber }">&lt;</a></td>
				<td>${week[0] }</td>
				<td>${week[1] }</td>
				<td>${week[2] }</td>
				<td>${week[3] }</td>
				<td>${week[4] }</td>
				<td rowspan="2"><a style="font-size: 20px;"
					href="<%= basePath%>/OrderCar_toSchedule.action?index=right&carid=${carid}&nowday=${nowday}&firstday=${firstday}&openid=${openid}&platenumber=${platenumber }">&gt;</a></td>
			</tr>
			<tr style="font-size: 14px">
				<td><a id="${date[0] }" name="${date[0] }" 
					href="<%= basePath%>/OrderCar_toSchedule.action?nowday=${date[0] }&firstday=${firstday}&openid=${openid}&carid=${carid}&platenumber=${platenumber }">${date[0].substring(5, 10) }</a></td>
				<td><a id="${date[1] }" name="${date[1] }" 
					href="<%= basePath%>/OrderCar_toSchedule.action?nowday=${date[1] }&firstday=${firstday}&openid=${openid}&carid=${carid}&platenumber=${platenumber }">${date[1].substring(5, 10) }</a></td>
				<td><a id="${date[2] }" name="${date[2] }" 
					href="<%= basePath%>/OrderCar_toSchedule.action?nowday=${date[2] }&firstday=${firstday}&openid=${openid}&carid=${carid}&platenumber=${platenumber }">${date[2].substring(5, 10) }</a></td>
				<td><a id="${date[3] }" name="${date[3] }" 
					href="<%= basePath%>/OrderCar_toSchedule.action?nowday=${date[3] }&firstday=${firstday}&openid=${openid}&carid=${carid}&platenumber=${platenumber }">${date[3].substring(5, 10) }</a></td>
				<td><a id="${date[4] }" name="${date[4] }" 
					href="<%= basePath%>/OrderCar_toSchedule.action?nowday=${date[4] }&firstday=${firstday}&openid=${openid}&carid=${carid}&platenumber=${platenumber }">${date[4].substring(5, 10) }</a></td>
			</tr>
		</table>

	</div>
	<div data-am-widget="intro" class="am-intro am-cf am-intro-default">
		<div class="am-intro-hd">
			<h2 class="am-intro-title">${nowday }
				<c:choose>
					<c:when test="${0 == serviceCarArrangeList.size() }">(今天没有课程)</c:when>

				</c:choose>




			</h2>
		</div>
		<s:iterator value="serviceCarArrangeList">
		<div class="am-g am-intro-bd">
			 <div class="am-intro-left am-u-sm-7">${timemap.get(arrangeId)}</div>
			  <div class="am-intro-left am-u-sm-5 zdy"><c:choose>
									<c:when test="${0 == arrageState}">
										<a href="<%= basePath%>/OrderCar_bookCourse.action?arrangeid=${arrangeId}&schoolid=${schoolId}&coachid=${userId}&openid=${openid}&nowday=${nowday }&firstday=${firstday}&carid=${carid}">&nbsp;&nbsp;预约&nbsp;&nbsp;</a>
									</c:when>
									<c:when test="${1 == arrageState}">
										<p>已预约</p>
									</c:when>
									<c:when test="${2 == arrageState}">
										<p>已完成</p>
									</c:when>
									<c:otherwise>
										<p>无法预约</p>
									</c:otherwise>
								</c:choose></div>
		</div>
		</s:iterator>
		

	</div>
</body>
</html>
